/**
 * TaskTypeFactoryImpl.java
 * com.sitech.dmcs.core
 * Function： TODO 
 *
 *   ver  author   date    
 * ──────────────────────────────────
 *   	 geutopia  Jan 6, 2011        
 *
 * Copyright (c) 2011, TNT All Rights Reserved.
*/

package com.sitech.timing;

import com.sitech.context.SpringContext;
import com.sitech.timing.TimingConst;
import com.sitech.timing.domain.TaskType;

/**
 * ClassName:TaskTypeFactoryImpl
 * Function: TODO ADD FUNCTION
 * Reason:	 TODO ADD REASON
 *
 * @author   geutopia
 * @version  
 * @since    Ver 1.1
 * @Date	 2011	Jan 6, 2011		10:45:34 AM
 *
 * @see 	 
 */

public class TaskTypeFactoryImpl implements TaskTypeFactory
{

	/**
	 * (non-Javadoc)
	 * @see com.sitech.timing.TaskTypeFactory#getTaskByTaskTaskType()
	 */
	public Task getTaskByTaskTaskType(TaskType taskType)
	{
		// TODO Auto-generated method stub
		String factoryType  = taskType.getFactoryType();
		TaskTypeFactory taskTyepFactory = (TaskTypeFactory) SpringContext.getBean(factoryType+TimingConst.TASKTYPE_FACTORY);
		Task task = taskTyepFactory.getTaskByTaskTaskType(taskType);
		return task;
	}

}
